package Homework;

import java.io.File;
import java.util.Scanner;

public class T3 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("输入创建目录名:");
        String name = scan.next();
        File dir = new File("./"+name);
        if (!dir.exists()){
            dir.mkdirs();
            System.out.println("目录创建成功!");
        }
    }
}
